<?php
class Start extends MOD{
	
	function __construct() 
	{	
		global $db;
		$this->db = &$db;
		global $cu;
		$this->cu = &$cu;
		global $api;
		$this->api = &$api;
	}

	function newuser($uid,$uname){
		$tmpuser['uid'] = $uid;
		$tmpuser['uname'] = $uname;
		$tmpuser['point'] = 100;
		$this->db->insert(DB_PRE.'user', $tmpuser);
		$this->api->cash_subapple(NEWUSER_APPLE);
	}

	function newduihua($data){
		$data['uid'] = $this->cu['uid'];
		$data['uname'] = $this->cu['name'];
		$data['time'] = time();
		$this->db->insert(DB_PRE.'duihua', $data);
		$this->api->cash_subapple(DUIHUA_APPLE);
	}

}
?>